#ifndef OPENGLRENDERER_H
#define OPENGLRENDERER_H

#include "appGlobals.h"

class OpenGLRenderer
{
public:
	static OpenGLRenderer& instance();

	void init(QPointer<QWidget> GLWidget);

	void drawQuadSprite(const QImage& image, const QPointF& pos, float fAngle = 0, 
		const QPointF& scale = QPointF(1.0f, 1.0f), const QRect& frameRect = QRect());
private:
	void drawQuad(const QRectF& rect, const QRectF& frameRect);
	OpenGLRenderer();
	QPointer<QWidget> m_GLWidget;
};

#endif // OPENGLRENDERER_H